﻿using iService.BASE;
using swiftCode.Bbs.Model.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace iService
{
    public interface IUserService : IBaseServices<User>
    {
        Task<List<User>> GetAllUser();
        Task<User> getSelfInfor(Expression<Func<User, bool>> expression);

        Task<User> addUserInfor(User user, bool autoSave = false);

        Task removeUserInfor(Expression<Func<User, bool>> expression, bool autoSave = false);

        Task<User> updateUserInfor(User user, bool autoSave = false);

        Task<User> login(Expression<Func<User, bool>> expression);

        Task<User> selectUser(Expression<Func<User, bool>> expression);

        Task<List<User>> selectAllUser(Expression<Func<User, bool>> expression);
    }
}
